﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using MarketPulse.Web.Helpers;

namespace MUM.Models
{
    public class SecurityModel
    {
        [Required]
        public string Username { get; set; }

        [Required]
        public string Password { get; set; }

        public string Action { get; set; }
        public string Controller { get; set; }

        [AcceptVerbs(HttpVerbs.Get)]
        public static void Logout()
        {
            SessionManager.Reset();
            CookieManager.UserGUID = null;
            CookieManager.UserKey = null;

        }
        
    }
}
